package com.zyl.Ecs.device.service;

import com.github.yulichang.base.MPJBaseService;
import com.zyl.Ecs.common.exception.EcsException;
import com.zyl.Ecs.common.domain.device.bean.Sensor;
import com.zyl.Ecs.common.domain.device.ext.SensorExt;

import java.util.List;

/**
* @version v1.0
* @Package: com.zyl.Ecs.device.service
* @ClassName: SensorService
* @Description 针对表【ecs_sensor】的数据库操作Service实现
* @Author 翟玉龙
* @Date 2024-12-05 09:52:35
*/

public interface SensorService extends MPJBaseService<Sensor> {

    /**
     * 修改传感器信息
     *
     * @param sensorExt 传感器信息
     * @return {@link SensorExt }
     * @throws EcsException 异常
     */
    SensorExt update(SensorExt sensorExt) throws EcsException;

    /**
     * 查询全部传感器列表
     *
     * @return {@link List }<{@link SensorExt }>
     * @throws EcsException 异常
     */
    List<SensorExt> getList() throws EcsException;

    /**
     * 查询未绑定点位的传感器列表
     *
     * @return {@link List }<{@link SensorExt }>
     * @throws EcsException 异常
     */
    List<SensorExt> listUnbound() throws EcsException;
}
